//引入模型
require('./../model/typesModel');
const mongoose = require('mongoose');

//获取所有的考试类型
async function getAllTypes(req,res,next) {
    let types = await mongoose.model('typesModel').find({});
    console.log(types);
    res.send({ data:types, code: 200 });
}


module.exports = {
    getAllTypes
}